package com.example.demo13.repository;


import com.example.demo13.model.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends JpaRepository<Student,Long> {
    @Query("SELECT a FROM Student a WHERE a.stuName like %:stuName% ")
    List<Student> findByDeviceType(String stuName);

}
